package com.platform.server.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.platform.server.dao.FeedbackDao;
import com.platform.server.service.FeedbackService;

@Service
public class FeedbackServiceImpl implements FeedbackService {
	
	@Autowired
	private FeedbackDao feenbackDao;
	
	/**
	 * 意见反馈列表
	 */
	@Override
	public List<Map<String, Object>> selectFeedbackList(String startTime,String endTime,String username,String mobile) {
		Map<String,Object> map = new HashMap<>();
		map.put("startTime", startTime);
		map.put("endTime", endTime);
		map.put("username", username);
		map.put("mobile", mobile);
		return feenbackDao.selectFeedbackList(map);
	}

	/**
	 * 删除意见反馈
	 */
	@Override
	public int deleteFeedback(String id) {
		return feenbackDao.deleteFeedback(id);
	}

}
